package com.erp.entity.goods;

import java.util.List;

/**
 * 商品类别
 */
public class GoodsCategory implements TreeNode {
    private Integer goodsCategoryId;  // 主键
    private String goodsCategoryName; // 商品类别名称
    private Integer goodsCategoryParentId; // 父级ID
    private Integer goodsCategoryStatus;  // 类别状态
    private Integer companyId;  // 公司ID

    private List<GoodsCategory> children;//子类别

    public List<GoodsCategory> getChildren() {
        return children;
    }

    public void setChildren(List<GoodsCategory> children) {
        this.children = children;
    }

    public Integer getGoodsCategoryId() {
        return goodsCategoryId;
    }

    public void setGoodsCategoryId(Integer goodsCategoryId) {
        this.goodsCategoryId = goodsCategoryId;
    }

    public String getGoodsCategoryName() {
        return goodsCategoryName;
    }

    public void setGoodsCategoryName(String goodsCategoryName) {
        this.goodsCategoryName = goodsCategoryName;
    }

    public Integer getGoodsCategoryParentId() {
        return goodsCategoryParentId;
    }

    public void setGoodsCategoryParentId(Integer goodsCategoryParentId) {
        this.goodsCategoryParentId = goodsCategoryParentId;
    }

    public Integer getGoodsCategoryStatus() {
        return goodsCategoryStatus;
    }

    public void setGoodsCategoryStatus(Integer goodsCategoryStatus) {
        this.goodsCategoryStatus = goodsCategoryStatus;
    }

    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    @Override
    public Integer getId() {
        return goodsCategoryId;
    }

    @Override
    public String getLabel() {
        return goodsCategoryName;
    }

    @Override
    public Integer getParentId() {
        return goodsCategoryParentId;
    }
}
